/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.spring.servicios;

import com.spring.modelo.DAO.AulaDAO;
import com.spring.modelo.entidad.Aula;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author karolyn
 */
@Service
public class ServicioAula {
    @Autowired
    private AulaDAO adao;

    public List<Aula> listarAulas() {
        return adao.listarAulas();
    }

    public boolean insertarAula(Aula a) {
        return adao.insertarAula(a);
    }

    public boolean eliminarAula(int codigo) {
        return adao.eliminarAula(codigo);
    }

    public Aula buscarAula(int codigo) {
        return adao.buscarAula(codigo);
    }
    
}
